package com.ncmmall.domain.business.setting;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ncmmall.domain.security.user.WebUser;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import java.sql.Timestamp;

/**
 * @author likaikai
 * @description 系统设置操作记录
 * @date 2019-07-06 14:12:26
 */

@Entity
@Table(name = "mall_system_setting_record")
@Access(AccessType.FIELD)
public class SystemSettingRecord {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;

    /**
     * 操作人
     */
    @OneToOne
    private WebUser webUser;

    /**
     * 操作类型
     * 6、提现税费设置
     */
    private int type;

    /**
     * 发票抬头
     */
    private String invoiceTitle;

    /**
     * 税号
     */
    private String invoiceNumber;

    /**
     * 代扣税费比例
     */
    private double invoiceScale;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public WebUser getWebUser() {
        return webUser;
    }

    public void setWebUser(WebUser webUser) {
        this.webUser = webUser;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getInvoiceTitle() {
        return invoiceTitle;
    }

    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public double getInvoiceScale() {
        return invoiceScale;
    }

    public void setInvoiceScale(double invoiceScale) {
        this.invoiceScale = invoiceScale;
    }
}